package com.easy.mapper;

import com.easy.bean.Pattern;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PatternDao {
    int add(@Param("pattern") Pattern pattern);
    int del(@Param("id") Integer id);
    int edit(@Param("pattern") Pattern pattern);
    Pattern one(@Param("id") Integer id);
    List<Pattern> all(@Param("pattern") Pattern pattern);
    List<Pattern> page(@Param("page") Page page, @Param("pattern") Pattern pattern);
    int pageCount(@Param("pattern") Pattern pattern);


}
